<%@ taglib uri="http://richfaces.org/a4j" prefix="a4j"%>
<%@ taglib uri="http://richfaces.org/rich" prefix="rich"%>
<%@ taglib uri="http://java.sun.com/jsf/html" prefix="h"%>
<%@ taglib uri="http://java.sun.com/jsf/core" prefix="f"%>

<html>
<head>
<title>Update Voting Information</title>
</head>
<body>
<f:view>
	<h:form>
	<h4 align="center">Update Voting Information</h4>
	<table>
		<tr>
			<td>
				<ul class="list_subsub_kisa">
					<li>
						<a href="manageVotings.jsf" title="ManageVotings">Return To Manage Votings Page</a>
					</li>
				</ul>
			</td>
			<td>
				<div class="columnMiddle"><rich:spacer width="1" height="50" />
					<rich:panel style="width:500px;background-color: #ebf3fd;">
						<f:facet name="header">
							<h:outputText value="Update Voting Information"></h:outputText>
						</f:facet>
						
						<h:panelGrid columns="3" style="width:500px;">
						
							<h:outputText value="Voting Name" />
							<h:inputText id="votingName" size="30" value="#{listAllVotingsController.voting.votingName}" />
							<h:outputText value="" />
								
							<h:outputText value="Start Date:" />
							<rich:calendar value="#{listAllVotingsController.selectedStartDate}"
						            locale="#{listAllVotingsController.locale}"
						            popup="#{listAllVotingsController.popup}"
						            datePattern="#{listAllVotingsController.pattern}"
						            showApplyButton="#{listAllVotingsController.showApplyButton}"
						            cellWidth="24px" cellHeight="22px" style="width:200px"/>
							<h:outputText value="" />
							
							<h:outputText value="End Date:" />
							<rich:calendar value="#{listAllVotingsController.selectedEndDate}"
						            locale="#{listAllVotingsController.locale}"
						            popup="#{listAllVotingsController.popup}"
						            datePattern="#{listAllVotingsController.pattern}"/>
							<h:outputText value="" />
							
							<h:outputText value="Option 1" />
							<h:inputText id="optionOne" size="30" value="#{listAllVotingsController.voting.votingSelectionOne}" />
							<h:outputText value="" />
							
							<h:outputText value="Option 2" />
							<h:inputText id="optionTwo" size="30" value="#{listAllVotingsController.voting.votingSelectionTwo}" />
							<h:outputText value="" />
							
							<h:outputText value="Option 3" />
							<h:inputText id="optionThree" size="30" value="#{listAllVotingsController.voting.votingSelectionThree}" />
							<h:outputText value="" />
							
							<h:outputText value="Option 4" />
							<h:inputText id="optionFour" size="30" value="#{listAllVotingsController.voting.votingSelectionFour}" />
							<h:outputText value="" />
							
							<h:outputText value="Option 5" />
							<h:inputText id="optionFive" size="30" value="#{listAllVotingsController.voting.votingSelectionFive}" />
							<h:outputText value="" />
							
							<h:outputText value="" /><h:outputText value="" /><h:outputText value="" />
							<h:outputText value="" /><h:outputText value="" /><h:outputText value="" />
							<h:outputText value="" /><h:outputText value="" /><h:outputText value="" />
							
							<h:commandButton value="Update Voting Information" action="#{listAllVotingsController.updateVoting}" />
							<h:commandButton value="Cancel" action="#{listAllVotingsController.cancelUpdateVotingRecord}" />
							<h:outputText value="" />
							
							<h:commandButton value="Display As Pie Chart" action="#{listAllVotingsController.displayAsPieChart}" />
							<h:commandButton value="Delete" action="#{listAllVotingsController.deleteVotingRecord}" />
							<h:outputText value="" />
							
																				
						</h:panelGrid>
					</rich:panel>
				</div>
			</td>
		</tr>
	</table>
	</h:form>
</f:view>
</body>

</html>